---
--- 插件规则，参数定义
--- Created by E.T.
--- DateTime: 2018/10/25 11:35
---
return {
    no_consumer = true,
    fields = {
        ----允许每秒多少个 req/sec的并发请求
        burst = {
            type = "string",required = true
        },
        ----限制每秒请求速率 req/sec
        rate = {
            type = "string",required = true
        },
        ----算法规则
        route_by = {
            type = "string",
            enum = { "leaky_bucket","token_bucket"},
            default = "token_bucket"
        },
        --限流规则 ip url 服务
        limit_by = {
            type = "string",
            enum = { "ip", "url", "service"},
            default = "ip"
        },
        --redis地址
        --redis_cluster_nodes = {
        --    type = "string",required = true
        --},
    }
}